package com.woniu.service;

import com.github.pagehelper.PageInfo;
import com.woniu.domain.Courseware;
import com.woniu.domain.WareCation;

import java.util.List;

import java.util.List;

public interface CoursewareService {
    Courseware getCourseById(Integer coursewareId);



    int addCourseware(Courseware courseware);

    int updateCourseware(Courseware courseware);

    //分页显示
    PageInfo<Courseware> findCoursewareByPage(Integer startpage, Integer pagesize);
    //删除课件
    void delWareById(Integer coursewareId);
    //搜索
    List<Courseware> getCourseByCondition(Courseware obj);
    //课件分类
    List<WareCation> wareQuery();

    int batchUpdateCourseware(List<Courseware> coursewares);

    //查询所有没有对应章节的课件
    List<Courseware> coursewareQuery();
	
	    //查询对应课程的课件
    List<Courseware> getDate(Integer courseId);

}
